package com.zhou.system.management.model.ao;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author xianfeng
 * @date 2023/5/21 17:58
 */
@Data
public class SysUserAddAo {

    @NotEmpty
    @ApiModelProperty(value = "用户昵称", position = 2)
    private String nickName;

    @ApiModelProperty(value = "用户邮箱", position = 3)
    private String email;

    @ApiModelProperty(value = "手机号码", position = 4)
    private String phone;

    @ApiModelProperty(value = "用户性别（0男;1女 2未知）", position = 5)
    private Integer sex;

    @ApiModelProperty(value = "头像地址", position = 6)
    private String avatar;

    @ApiModelProperty(value = "用户类型（00系统用户）", position = 7)
    private Integer userType;

    @NotEmpty
    @ApiModelProperty(value = "用户账号", position = 8)
    private String userName;

    @ApiModelProperty(value = "是否需要修改密码,0:不需要 1:需要", position = 10)
    private Boolean needModifyPwd;

    @ApiModelProperty(value = "帐号状态（0正常;1停用）", position = 11)
    private Integer status;

    @ApiModelProperty(value = "备注", position = 15)
    private String remark;

    @NotEmpty
    @ApiModelProperty(value = "部门信息", position = 16)
    private List<DeptRoles> depts;


    @Data
    public static class DeptRoles {

        @NotNull
        private Long deptId;

        private List<Long> roleIds;

        @ApiModelProperty(value = "帐号状态（0正常;1停用）", position = 11)
        @NotNull
        private Integer status;

    }
}
